﻿using System;
using System.Linq;
using System.Text;
using Model.Core;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///SCADA工步信息表
    ///</summary>
    [SugarTable("v_scada_jobstep")]
    public partial class v_scada_jobstep: NotifyPropertyChanged
    {
           public v_scada_jobstep(){


           }
           /// <summary>
           /// Desc:工步编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_code_str {get;set;}

           /// <summary>
           /// Desc:工步描叙
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_str {get;set;}

           /// <summary>
           /// Desc:工步元素类别（物料，工具，文件）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string element_type_str {get;set;}

           /// <summary>
           /// Desc:工步元素名称（如物料A）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_element_str {get;set;}

           /// <summary>
           /// Desc:工步元素编码（如WL0001）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string element_code_str {get;set;}

           /// <summary>
           /// Desc:工具使用次数或物料数量
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public int? element_qty_int {get;set;}

           /// <summary>
           /// Desc:文件版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string element_version_str {get;set;}

           /// <summary>
           /// Desc:扭矩
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? torque {get;set;}

           /// <summary>
           /// Desc:角度
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? angle {get;set;}

           /// <summary>
           /// Desc:描叙
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string comment_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:nextval('scada_jobstep_id_seq'::regclass)
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           //public DateTime? createtime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public string createuser_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           //public DateTime? modifytime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string remark_str {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public bool? isenable_bit {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public bool? isactive_bit {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public bool? issync_bit {get;set;}

        /// <summary>
        /// Desc:状态
        /// Default:0
        /// Nullable:True
        /// </summary>           
        private int _state_int;

        public int state_int
        {
            get { return _state_int; }
            set
            {
                if (value != _state_int)
                {
                    _state_int = value;
                    OnPropertyChanged(nameof(state_int));
                }
            }
        }

        /// <summary>
        /// Desc:
        /// Default:1
        /// Nullable:True
        /// </summary>           
        //public int? control_mode {get;set;}

        /// <summary>
        /// Desc:使用次数
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public int? matusedtimes {get;set;}

        /// <summary>
        /// Desc:是否扫描
        /// Default:
        /// Nullable:True
        /// </summary>           
        public short? isscan_int {get;set;}

           /// <summary>
           /// Desc:工序ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public int? processid {get;set;}

        /// <summary>
        /// Desc:产品编码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string matid { get; set; }

        /// <summary>
        /// Desc:产品描叙
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string matdesc { get; set; }

        /// <summary>
        /// Desc:Mbom版本
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string mbom { get; set; }

        /// <summary>
        /// Desc:工艺流程编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string techprocess { get; set; }

        /// <summary>
        /// Desc:工艺流程版本
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string small_version { get; set; }

        /// <summary>
        /// Desc:工序名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string disque_name { get; set; }

        /// <summary>
        /// Desc:工序编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string disque_code { get; set; }

        /// <summary>
        /// Desc:工序的第几工步
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? jobstep_id { get; set; }

        public decimal? workhour_num { get; set; }
    }
}
